<?php
$i = 1;
$pos_arr = array('st', 'nd', 'rd');

foreach ($test_result->result() as $row):
    ?>

    <h1>Your <?php echo $i.$pos_arr[$i-1]; ?> dominant personality: <?php echo ucfirst($row->personality_type); ?></h1>
    <p><?php echo $row->description;
    $i++; ?></p>

<?php endforeach; ?>


<?php //echo anchor('career', 'Now let choose your career'); ?>
